import request from '@/utils/request'

// 查询轮播广告列表
export function listAction(query) {
    return request({
        url: '/cms/manager/action/list',
        method: 'get',
        params: query
    })
}

// 查询轮播广告详细
export function getAction(id) {
    return request({
        url: '/cms/manager/action/' + id,
        method: 'get'
    })
}

// 新增轮播广告
export function addAction(data) {
    return request({
        url: '/cms/manager/action',
        method: 'post',
        data: data
    })
}

// 修改轮播广告
export function updateAction(data) {
    return request({
        url: '/cms/manager/action',
        method: 'put',
        data: data
    })
}

// 删除轮播广告
export function delAction(id) {
    return request({
        url: '/cms/manager/action/' + id,
        method: 'delete'
    })
}


export function batchDelAction(ids) {
    return request({
        url: '/cms/manager/action/batch/delete',
        method: 'post',
        data: ids
    })
}